import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import 'vant/es/dialog/style'
import 'vant/es/toast/style'
import 'vant/es/notify/style'
import 'vant/es/image-preview/style'

const store = createPinia()
// 将插件提供给store实例
store.use(piniaPluginPersistedstate)

const app = createApp(App)
app.use(router)
app.use(store)
app.mount('#app')
